package com.dwms.feign.declare;

import com.dwms.entity.PageResponse;
import com.dwms.entity.QueryRequest;
import com.dwms.entity.Result;
import com.dwms.entity.declare.cebOrder.request.CebOrderQueryRequest;
import com.dwms.entity.declare.cebOrder.request.CebOrderRequest;
import com.dwms.entity.declare.cebOrder.response.CebOrderResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ClassName: CebOrderController
 * @Description: CebOrder
 * @Create 2025-09-15 23:07:33
 * @Author WH
 * @Since 1.0.0
**/
@FeignClient(value = "declare-server", path = "/cebOrder")
public interface CebOrderFeignClient {

    /**
     * 修改
     *
     * @param cebOrderRequest
     *          请求参数
     * @return
     */
    @PostMapping("/update")
    Result update(@RequestBody CebOrderRequest cebOrderRequest);
    

    /**
     * 分页查询
     *
     * @param query
     *          查询参数
     * @return
     */
    @PostMapping("/findPage")
    Result<PageResponse<CebOrderResponse>> findPage(@RequestBody CebOrderQueryRequest query);

    /**
     *  根据ID查询
     *
     * @param query
     *          参数
     * @return
     */
    @PostMapping("/findById")
    Result findById(@RequestBody QueryRequest query);

    /**
     * 申报
     *
     * @param query
     * @return
     */
    @PostMapping("/declare")
    Result declare(@RequestBody QueryRequest query);
}
